package com.intel.two.pojo.smarthome;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @BelongsProject: intelligentcommunity
 * @BelongsPackage: com.intel.two.pojo.smarthome
 * @Author: yanhongwei
 * @CreateTime: 2022-10-13  16:35
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Guarantee {
    private int guarantee_id;
    private int guarantee_years;
    private int guarantee_state; //保修状态

    @DateTimeFormat(pattern = "yyyy-MM-dd")   // springmvc 接受日期字段格式
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")  // jackson 响应的日期格式
    private Date guarantee_buydate;

    private String guarantee_com;
    private Integer guarantee_isdel;//是否删除

    private Integer household_id;


}
